Skip to content

Display TensorRT-LLM AgentX server metrics - #747

Open
cquil11 wants to merge 5 commits into
masterfrom
agent/capture-trtllm-server-metrics
Open

Display TensorRT-LLM AgentX server metrics#747
cquil11 wants to merge 5 commits into
masterfrom
agent/capture-trtllm-server-metrics

Conversation

@cquil11

@cquil11 cquil11 commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a TensorRT-LLM server-metrics adapter for Dynamo disaggregated roles
  • expose TensorRT-LLM token, cache, queue, and KV metrics in AgentX charts and aggregates
  • preserve separate prefill and decode metric sources

Follows SemiAnalysisAI/InferenceX#2625 and NVIDIA/TensorRT-LLM#12545.

Validation

  • 24 focused Vitest tests passed
  • oxlint passed
  • oxfmt check passed
  • TypeScript typecheck passed

Note

Medium Risk
Bumps stored chart-series semantics and runs a staging DB backfill; changes are localized to metric ETL/adapters with tests, but incorrect TRT-LLM mapping could mislabel disagg sources or chart values.

Overview
Adds TensorRT-LLM support to AgentX server-metric charts and rollups by mapping native trtllm_* Prometheus series into the same KV, prefix-cache, queue, throughput, and per-source prompt views used for vLLM/SGLang. CHART_SERIES_VERSION is bumped to 17, including deriving prompt throughput from trtllm_prefill_batch_tokens histogram sums when prompt-token counters are absent, and wiring Dynamo disaggregated prefill/decode via a dedicated trtllm server-metrics adapter (dynamo_component / disaggregation_mode).

Aggregate extraction and oversized-blob stream parsing are extended with the same TRT-LLM keys and fallbacks (e.g. direct trtllm_kv_cache_hit_rate when hit/query counters are missing).

Staging workflow: after ingest, a new job runs db:backfill-chart-series --run-id so staged traces get recomputed chart series; staging success now requires that step. The backfill CLI gains --run-id to scope recomputation to traces tied to one GitHub Actions run.

Reviewed by Cursor Bugbot for commit 80f9aec. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Aug 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
inferencemax-app Ready Ready Preview Aug 31, 2026 11:10pm

Request Review

@cquil11

cquil11 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

Closing because the project scope is now limited to porting active, nondeprecated AMD multi-node configurations to srt-slurm. This PR is outside that scope.

@cquil11 cquil11 closed this Aug 27, 2026
@cquil11

cquil11 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

Reopening: this PR predates the recent out-of-scope configuration-porting detour and was closed by mistake during an overly broad cleanup. Its prior state is being restored.

@cquil11 cquil11 reopened this Aug 27, 2026
};

const ADAPTERS: readonly ServerMetricsAdapter[] = [dynamoAdapter, genericAdapter];
const ADAPTERS: readonly ServerMetricsAdapter[] = [trtllmAdapter, dynamoAdapter, genericAdapter];

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TRT-LLM adapter drops Dynamo router role

Medium Severity

The new trtllm adapter is listed before the Dynamo adapter and matches any framework whose name contains trt, including canonical dynamo-trt. Its role mapping handles prefill/backend/decode/aggregated but not Dynamo frontend/router, so those sources are stored as unknown instead of router. Per-source pickers for Dynamo TRT-LLM disagg runs therefore mislabel the frontend endpoint.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 4e703c0. Configure here.

Comment thread packages/db/src/etl/server-metrics-adapters.ts
Comment thread packages/db/src/queries/agentic-aggregates.ts

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

There are 3 total unresolved issues (including 2 from previous reviews).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit c3acc10. Configure here.

Comment thread packages/db/src/etl/server-metrics-adapters.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant